package com.luo.employee_oa.service.impl;

import com.luo.employee_oa.mapper.EmployeeInsuranceMapper;
import com.luo.employee_oa.pojo.EmployeeInsurance;
import com.luo.employee_oa.service.EmployeeInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeInsuranceServiceImpl implements EmployeeInsuranceService {
    private final EmployeeInsuranceMapper employeeInsuranceMapper;

    @Autowired
    public EmployeeInsuranceServiceImpl(EmployeeInsuranceMapper employeeInsuranceMapper) {
        this.employeeInsuranceMapper = employeeInsuranceMapper;
    }

    @Override
    public int addEmployeeInsurance(EmployeeInsurance employeeInsurance) {
        return employeeInsuranceMapper.addEmployeeInsurance(employeeInsurance);
    }
}
